package com.baidu.bas.core.exception;

import lombok.extern.slf4j.Slf4j;

/**
 * @Description:
 * @author: liyuepeng
 * @time:2018/12/15 23:18
 */
@Slf4j
public class EruptNoAuthException extends RuntimeException {

    private static final String NO_LEGAL_POWER = "认证过期或者授权失败!";

    public EruptNoAuthException(String message) {
        super(message);
    }

    public EruptNoAuthException() {
        //TODO 需要记录IP或者其他操作
        throw new EruptNoAuthException(NO_LEGAL_POWER);
    }
}
